package com.dmz.resold.apartment.client;

public class PayServicesPortTypeProxy implements PayServicesPortType {
  private String _endpoint = null;
  private PayServicesPortType payServicesPortType = null;
  
  public PayServicesPortTypeProxy() {
    _initPayServicesPortTypeProxy();
  }
  
  public PayServicesPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initPayServicesPortTypeProxy();
  }
  
  private void _initPayServicesPortTypeProxy() {
    try {
      payServicesPortType = (new PayServicesLocator()).getPayServicesHttpPort();
      if (payServicesPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)payServicesPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)payServicesPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (payServicesPortType != null)
      ((javax.xml.rpc.Stub)payServicesPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public PayServicesPortType getPayServicesPortType() {
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType;
  }
  
  public String2StringMapEntry[] getBankCommand(String in0, String in1) throws java.rmi.RemoteException{
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType.getBankCommand(in0, in1);
  }
  
  public boolean writeFile(String in0, String in1, String in2, int in3) throws java.rmi.RemoteException{
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType.writeFile(in0, in1, in2, in3);
  }
  
  public boolean newReturnBankCommand(String in0, String in1, boolean in2, String in3, String in4, String in5) throws java.rmi.RemoteException{
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType.newReturnBankCommand(in0, in1, in2, in3, in4, in5);
  }
  
  public byte[] readFile(String in0, String in1) throws java.rmi.RemoteException{
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType.readFile(in0, in1);
  }
  
  public boolean returnBankCommand(String in0, String in1, boolean in2, String in3, String in4) throws java.rmi.RemoteException{
    if (payServicesPortType == null)
      _initPayServicesPortTypeProxy();
    return payServicesPortType.returnBankCommand(in0, in1, in2, in3, in4);
  }
  
  
}